package com.usc.mock.log.util;


import lombok.extern.slf4j.Slf4j;

@Slf4j
public class LogUtil {

    public static void log(String logString) {
        log.info(logString);
    }

    public static void main(String[] args) {
        String sql = "xx table order_info\n partition xx";
        int tIdx = sql.indexOf("table") + 6;
        int nIdx = sql.indexOf("\n", tIdx);
        int spIdx = sql.indexOf(" ", tIdx);
        int min = Math.min(nIdx, spIdx);
        System.out.println(sql.substring(tIdx, min));
    }

}
